package com.vhly.ddxdecompiler.dexreader.file.mixeditem;

import com.vhly.ddxdecompiler.dexreader.io.DexInputStream;

import java.io.ByteArrayInputStream;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: vhly
 * Date: 2009-10-21
 * Time: 10:21:42
 *
 * @author vhly[FR]
 */
public interface EncodeMember {
    /**
     * 读取编码后的数据
     *
     * @param din 数据流
     * @throws IOException 异常
     */
    public abstract void readEncode(DexInputStream din) throws IOException;

    /**
     * 重新定位
     *
     * @param bin    数据流
     * @param offset 起始偏移
     * @throws IOException 异常
     */
    public abstract void reloc(ByteArrayInputStream bin, int offset) throws IOException;
}
